#ifndef BIGINT_HPP
#define BIGINT_HPP
#include <stdint.h>
#include <cstring>
union In{
    uint32_t l;
    uint8_t c[4];
};

struct BigInt
{
    In *data;
    BigInt(const char *str, uint32_t str_l, uint32_t maxL)
    {
        data = new In[maxL];
        memset(data, 0, 4*maxL);
        int val = 0;
        int sum;
        for(int i = str_l-1; i>=0; i--)
        {
            val+=str[i]-'0';
            if()
        }
    }
    BigInt(uint32_t maxL)
    {
        data = new In[maxL];
        memset(data, 0, 4*maxL);
    }
    ~BigInt(){delete []data;}
};

#endif // BIGINT_HPP
